package com.ai.bitcoin.jpa.dao;

import com.ai.bitcoin.jpa.entity.BccReport;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Jason
 * @date 2018.5.11
 **/
public interface BccReportDao extends JpaRepository<BccReport, String> {

    List<BccReport> findAllByOrderByCirculationCapUsdDesc();

    List<BccReport> findAllByOrderByVolume24hUsdDesc();

    List<BccReport> findByReportDateNot(String reportDate);

    void deleteByReportDateNot(String date);
}
